/****************************************************
 * 创建人:   robin
 * 创建时间: 2023/8/30.030 11:00
 * 项目名称: cpy
 * 文件名称: CollectConstant.java
 * 文件描述: 
 *
 * All rights Reserved, Designed By 德品软件
 * @Copyright:2023-2023
 *
 ********************************************************/
package com.dp.constant;

import java.math.BigDecimal;

/**
 * 包名称：com.dp.constant
 * 类名称：CollectConstant
 * 类描述：
 * 创建人： robin
 * 创建时间：2023/8/30.030 11:00
 */
public class CollectConstant {
    
    public static final String COLON      = ":";
    public static final String SPACE      = " ";
    public static final String SEMICOLON  = ";";

    
    public static final String FORMAT_DATE_YMDHMS = "yyyy-MM-dd HH:mm:ss";
    public static final String FORMAT_DATE_YMD = "yyyy-MM-dd";
    
    public static final BigDecimal MAX_OIL_VOL = BigDecimal.valueOf(1300);
    
    public static final int MSG_BUF_LEN = 1024;
    public static final int QUEUE_CAPACITY = 1024;
    public static final int MINUTE_5 = 300; // 5 分
    public static final int SECOND_600 = 600000;    // 10 分
    public static final int SECOND_300 = 300000;    // 5 分
    public static final int SECOND_20 = 20000;      // 20 秒
    public static final int SECOND_1 = 1000;        // 1 秒
    public static final int MILLISECOND_100 = 100;  // 0.1 秒
    
    public static final int MSG_HEAD_LENGTH             = 4;
    public static final short OIL_DATA_HEAD             = (short) 0xBB55;
    public static final short OIL_DATA_CMD_OIL          = (short) 0xF941;
    public static final short OIL_DATA_CMD_OIL_2        = (short) 0xE830;
    public static final short OIL_DATA_CMD_LIFT_TIMEOUT = (short) 0xF936;   // 提抢超时
    public static final short OIL_DATA_CMD_HEARTBEAT    = (short) 0xF942;
    public static final short OIL_DATA_CMD_HEARTBEAT_2  = (short) 0xE831;
    public static final int OIL_GATEWAY_LENGTH = 8;
    
    public static final short UNKNOWN_CMD_01            = (short) 0xE825;
    
    public static final short TANK_DATA_HEAD            = (short) 0xAA55;
    public static final short TANK_DATA_LENGTH          = (short) 0x13;
    public static final short TANK_DATA_CMD_HEARTBEAT   = (short) 0xE025;
    public static final int TANK_GATEWAY_LENGTH = 15;
    public static final String TANK_GATEWAY_PREFIX = "A";
    public static final String TANK_HEARTBEAT = "AA550004E0250109";
    public static final String TANK_DATA_CMD = "01693230313030";
    public static final String OIL_REGISTER_TIP = "please register";
    public static final String ASK = "are you ok";
    public static final String OIL_DATA_AMOUNT_1 = "2323";
    public static final String OIL_DATA_AMOUNT_2 = "4040";
    
    public static final BigDecimal BIGDECIMAL_HUNDRED   = BigDecimal.valueOf(100);
    
    
    public static final String TOPIC = "FO";
    
    /**
     * RocketMQ TAG
     */
    public static final String IM_OIL_TANK_STATUS_TAG = "im_oil_tank_status_tag"; //油罐状态
    public static final String IM_ENCODER_OIL_RECORD_TAG = "im_encoder_oil_record_tag"; //编码器数据
    public static final String IM_EQUIPMENT_STATUS_TAG = "im_equipment_status_tag"; //设备状态
    public static final String IM_NOZZLE_USE_RECORD_TAG = "im_nozzle_use_record_tag"; //油枪使用记录
    public static final String IM_TAX_DECLARATION_RECORD_TAG = "im_tax_declaration_record_tag"; //报税口记录
    
}
